package com.mh.pojo;

import java.util.Date;

import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;

import lombok.Data;

/**
 * 资产变动表(AssetChange)表实体类
 *
 * @author zmh
 * @since 2025-02-08 09:18:49
 */
@SuppressWarnings("serial")
@Data
public class AssetChange {
    //记录ID
    private Integer id;
    //资产账户ID
    private Integer accountId;
    //变动金额
    private Double changeAmount;
    //变动后余额
    private Double currentBalance;
    //变动类型（1-账单变动 2-手动调整 3-转账）
    private Integer changeType;
    //关联账单ID
    private Integer billId;
    //备注
    private String remark;

    private Date createTime;

    public AssetChange(Integer accountId, Double changeAmount, Double currentBalance, Integer changeType, Integer billId, String remark) {
        this.accountId = accountId;
        this.changeAmount = changeAmount;
        this.currentBalance = currentBalance;
        this.changeType = changeType;
        this.billId = billId;
        this.remark = remark;
    }
}

